using UnityEngine;
using System.Collections;

public class BoxMonsterCollider : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		this.transform.position = new Vector3( this.transform.position.x, this.transform.position.y, 0);
	}
	
	void OnCollisionEnter( Collision collisionInfo )
	{
		GameObject gObject = collisionInfo.gameObject;
		if( gObject.tag == "Enemy" )
		{
			GameObject.Destroy(gObject);
		}
	}
}
